/*
Copyright [2020] [https://www.xiaonuo.vip]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：

1.请不要删除和修改根目录下的LICENSE文件。
2.请不要删除和修改Snowy源码头部的版权声明。
3.请保留源码和相关描述文件的项目出处，作者声明等。
4.分发源码时候，请注明软件出处 https://gitee.com/xiaonuobase/snowy
5.在修改包名，模块名称，项目代码等时，请注明软件出处 https://gitee.com/xiaonuobase/snowy
6.若您的项目无法满足以上几点，可申请商业授权，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package vip.xiaonuo.facedoor.modular.devicehistory.param;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import vip.xiaonuo.core.pojo.base.param.BaseParam;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
* 终端历史数据表参数类
 *
 * @author 胡鹏达
 * @date 2022-07-22 16:27:05
*/
@Data
public class DeviceHistoryParam extends BaseParam {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Long id;

    private String deviceName;

    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @NotBlank(message = "逻辑删除标记（0：显示；1：隐藏）不能为空，请检查delFlag参数", groups = {add.class, edit.class})
    private String delFlag;

    /**
     * 设备ID
     */
    @NotNull(message = "设备ID不能为空，请检查deviceBaseId参数", groups = {add.class, edit.class})
    private Long deviceBaseId;

    /**
     * 人员ID
     */
    @NotNull(message = "人员ID不能为空，请检查memberId参数", groups = {add.class, edit.class})
    private Long memberId;

    private String memberJobNum;

    /**
     * 所属部门
     */
    @NotNull(message = "所属部门不能为空，请检查officeId参数", groups = {add.class, edit.class})
    private Long orgId;

    /**
     * 人员类型0：内部员工，1：外来人员
     */
    @NotNull(message = "人员类型0：内部员工，1：外来人员不能为空，请检查memberType参数", groups = {add.class, edit.class})
    private Integer memberType;

    /**
     * 人员姓名
     */
    @NotBlank(message = "人员姓名不能为空，请检查memberName参数", groups = {add.class, edit.class})
    private String memberName;

    /**
     * 通行抓拍图
     */
    @NotBlank(message = "通行抓拍图不能为空，请检查image参数", groups = {add.class, edit.class})
    private String image;

    /**
     * 设备通行时间
     */
    @NotNull(message = "设备通行时间不能为空，请检查deviceCurrentDate参数", groups = {add.class, edit.class})
    private String deviceCurrentDate;

    /**
     * 访问类型 1-人脸记录  2-刷卡记录  3-二维码记录
     */
    @NotNull(message = "访问类型 1-人脸记录  2-刷卡记录  3-二维码记录不能为空，请检查type参数", groups = {add.class, edit.class})
    private Integer type;

    /**
     * 验证类型
     */
    @NotNull(message = "验证类型不能为空，请检查verifyType参数", groups = {add.class, edit.class})
    private Integer verifyType;

    /**
     * 卡号
     */
    @NotBlank(message = "卡号不能为空，请检查icNum参数", groups = {add.class, edit.class})
    private String icNum;

    /**
     * 二维码信息
     */
    @NotBlank(message = "二维码信息不能为空，请检查erCode参数", groups = {add.class, edit.class})
    private String erCode;

    /**
     * 体温	
     */
    @NotBlank(message = "体温	不能为空，请检查temperature参数", groups = {add.class, edit.class})
    private String temperature;

    /**
     * 健康码
     */
    @NotBlank(message = "健康码不能为空，请检查healthCode参数", groups = {add.class, edit.class})
    private String healthCode;

    /**
     * 健康码颜色
     */
    @NotBlank(message = "健康码颜色不能为空，请检查healthColor参数", groups = {add.class, edit.class})
    private String healthColor;

    /**
     * 上传状态：0：未上传，1：已上传
     */
    @NotNull(message = "上传状态：0：未上传，1：已上传不能为空，请检查status参数", groups = {add.class, edit.class})
    private Integer status;

    /**
     * 备注信息
     */
    @NotBlank(message = "备注信息不能为空，请检查remarks参数", groups = {add.class, edit.class})
    private String remarks;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date comparedStartDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date comparedEndDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date putTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date takeTime;

}
